package com.taotao.inventory.service.imlp;

import java.util.List;

import com.taotao.common.core.domain.Result;
import com.taotao.common.core.utils.DateUtils;
import com.taotao.inventory.domain.vo.PurchaseOrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.taotao.inventory.mapper.TProcurementDemandMapper;
import com.taotao.inventory.domain.TProcurementDemand;
import com.taotao.inventory.service.ITProcurementDemandService;

/**
 * 采购需求表Service业务层处理
 *
 * @author lyl
 * @date 2025-01-14
 */
@Service
public class TProcurementDemandServiceImpl implements ITProcurementDemandService {
    @Autowired
    private TProcurementDemandMapper tProcurementDemandMapper;
    /**
     * 查询采购需求表列表
     *
     * @param tProcurementDemand 采购需求表
     * @return 采购需求表
     */
    @Override
    public List<TProcurementDemand> selectTProcurementDemandList(TProcurementDemand tProcurementDemand) {
        return tProcurementDemandMapper.selectTProcurementDemandList(tProcurementDemand);
    }

    /**
     * 删除采购需求表信息
     * @param id
     * @return
     */
    @Override
    public Result deleteTProcurementDemandById(Long id) {

        tProcurementDemandMapper.deleteTProcurementDemandById(id);

        return Result.success(null, "删除成功");
    }

    /**
     * 订单列表
     * @param purchaseOrderVo
     * @return
     */
    @Override
    public List<PurchaseOrderVo> selectPurchaseOrderList(PurchaseOrderVo purchaseOrderVo) {
        return tProcurementDemandMapper.selectPurchaseOrderList(purchaseOrderVo);
    }
}



